Programming in Icon; Part I — Programming with Generators Programming in Icon; Part I — Programming with Generators

نویسنده

  • Ralph E. Griswold
چکیده

1. Introduction The Icon programming language [1] contains a number of features that are unusual and that are not found in most other programming languages. As a result, Icon encourages programming techniques that are distinctly different from those that are possible in more conventional programming languages. Not all of these techniques are obvious. Indeed, experience with other programming languages is, if anything, an impediment to discovering new possibilities and exploiting the full range of opportunities in Icon. This is the first in a series of technical reports on various aspects of programming in Icon. These reports are designed to explore the unusual language features in Icon in depth with particular emphasis on how they can be used in a variety of programming situations. An appendix containing problems is included to illustrate programming techniques and to provide exercises for interested readers. Most of these problems were derived from classroom exercises and tests. A familiarity with Version 5 of Icon is assumed in these reports, although features that are the specific focus of a report are reviewed in some detail.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Programming in Icon ; Part II — Programming with Co - Expressions

1. Introduction This report is the second in a series that deals with various aspects of programming in Icon. The first report [1] dealt with generators. Co-expressions are the topic of this second report for two reasons: (1) they derive their utility from generators, and (2) they seem to present more problems to programmers than other features of Icon. The first two parts of this report treat ...

متن کامل

Co-Expressions in Icon

1. Introduction Icon is a high-level programming language that features facilities for string and list processing. In addition to these facilities, it has expressions, called generators, that are capable of producing sequences of results. A goal-directed evaluation mechanism automatically produces the results of generators in an attempt to produce 'successful' computations. Generators and goal-...

متن کامل

A Study on Performance of Solid Oxide Fuel Cell-Stirling Engine Cycle Combined System- Part I: SOFC Simulation by Programming in Matlab and Modeling in Hysys

In recent years, using new methods in utilization of energy resources has become necessary due to environmental pollution and restriction of energy resources. The hybrid system presented in this article produced power with SOFC and Stirling engine. The purpose is to analyze a 50 kW Solid Oxide Fuel Cell that could produce enough thermal energy for a 10 kW Stirling engine working in the hybrid s...

متن کامل

Engineering E cient Code Generators using Tree Matching and Dynamic Programming

Many code generator generators use tree pattern matching and dynamic programming. This note describes a simple program that generates matchers that are fast, compact, and easy to understand. It is simpler than common alternatives: 200{700 lines of Icon versus 3000 lines of C for Twig and 5000 for burg. Its matchers run up to 25 times faster than Twig's. They are necessarily slower than burg's B...

متن کامل

A new implementation of the Icon language

We describe Jcon, a new, Java-based implementation of the Icon programming language. The implementation includes a compiler and runtime system. The runtime system is novel in its concise and efficient object-oriented implementation of a dynamically typed language, as well as its simple mechanism for realizing Icon generators.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014